<%-- 
    Document   : action
    Created on : 14-Oct-2011, 09:13:39
    Author     : 
--%>

<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        
        <center>
        <h1>Datos recibidos</h1>
        
        <jsp:useBean id="faca" scope="application" class="Logica.Maximo" />
        <jsp:useBean id="facd" scope="application" class="Logica.Promedio" />
        <jsp:useBean id="fac" scope="session" class="trabajosubversion.Facade" />
        
        <%
        
        float X=Integer.parseInt(request.getParameter("CoordX"));
        float Y=Integer.parseInt(request.getParameter("CoordY"));
        ArrayList datX= new ArrayList();
        datX.add(X);
        ArrayList datY= new ArrayList();
        datY.add(Y);         
                 
         float numeroMayor=faca.calcularMaximo();
         
         float numeroMenor=faca.calcularMinimo();
      
         float prom=facd.calcularPromedio();
         
       %>
       
       <h3>Resultados</h3>
        <br>
        <b>Max X=<%=numeroMayor%>, Min X=<%=numeroMenor%></b>
                
        <br>
        <b>PromX:<%=prom%></b>
       
    </center>
        
    </body>
</html>
